package Homework10_6;

public class Add extends Thread{
	private int num;
	private int sum; 
	@Override
	public void run() {
		for(int i=0;i<10;i++){
			sum += num;
			num++;
		}
	}
	
	public int sum(){
		return sum;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}
}
